{% macro employeeeditor(employee) -%}
<form action="/employee" method="POST" name="employee" id="employeeeditorform">
    <input type="hidden" name="employeeid" id="employeeid" value="">
    <p>
    <fieldset>
        <legend>{{_('personal data')}}</legend>
        <label for="employeefirstname">{{_('employeefirstname')}}</label>
        <input id="employeefirstname" name="employeefirstname" type="text" required/>

        <label for="employeesurname">{{_('employeesurname')}}</label>
        <input id="employeesurname" name="employeesurname" type="text" required/>

        <label for="employeemidname">{{_('employeemidname')}}</label>
        <input id="employeemidname" name="employeemidname" type="text"/>

        <label for="employeejmbg">{{_('employeejmbg')}}</label>
        <input id="employeejmbg" name="employeejmbg" type="text" required/> <!-- Add size here (13), and validation-->

        <label for="employeepersonalcardnumber">{{_('employeepersonalcardnumber')}}</label>
        <input id="employeepersonalcardnumber" name="employeepersonalcardnumber" type="text"/>
        <br>
        <label for="">{{_('employeeemail')}}</label>
        <input id="employeeemail" name="employeeemail" type="text"/>
        <br>
        <label for="employeegender">{{_('employeegender')}}</label>
        <input type="radio" id="employeegender_m" name="employeegendergroup" value="m">{{_('male')}}
        <input type="radio" id="employeegender_f" name="employeegendergroup" value="f">{{_('female')}}
    </fieldset>
    <fieldset>
        <legend>{{_('birth data')}}</legend>
        <label for="employeedateofbirth">{{_('employeedateofbirth')}}</label>
        <input id="employeedateofbirth" name="employeedateofbirth" type="text" required/>
        <br>
        <label for="employeecountryofbirth">{{_('employeecountryofbirth')}}</label>
        <input id="employeecountryofbirth" name="employeecountryofbirth" type="text"/>
        <br>
        <label for="employeestateofbirth">{{_('employeestateofbirth')}}</label>
        <input id="employeestateofbirth" name="employeestateofbirth" type="text"/>
        <br>
        <label for="employeecityofbirth">{{_('employeecityofbirth')}}</label>
        <input id="employeecityofbirth" name="employeecityofbirth" type="text"/>
        <br>
        <label for="employeedistrictofbirth">{{_('employeedistrictofbirth')}}</label>
        <input id="employeedistrictofbirth" name="employeedistrictofbirth" type="text"/>
    </fieldset>

    <fieldset>
        <legend>{{_('address data')}}</legend>
        <label for="employeestreet">{{_('employeestreet')}}</label>
        <input id="employeestreet" name="employeestreet" type="text"/>

        <label for="employeecity">{{_('employeecity')}}</label>
        <input id="employeecity" name="employeecity" type="text"/>

        <label for="employeedistrict">{{_('employeedistrict')}}</label>
        <input id="employeedistrict" name="employeedistrict" type="text"/>

        <label for="employeestate">{{_('employeestate')}}</label>
        <input id="employeestate" name="employeestate" type="text"/>
    </fieldset>

    <fieldset>
        <legend>{{_('job data')}}</legend>
        <label for="employeejobdate">{{_('employeejobdate')}}</label>
        <input id="employeejobdate" name="employeejobdate" type="text"/>
    </fieldset>
    </p>
    <p>
        <button onclick="postemployee()" type="button">{{_('save')}}</button>
    </p>
</form>
<script>
bindEvents()
</script>
{%- endmacro %}

{{employeeeditor(employee=None)}}
